package com.bit.strongbaby;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;

public class TabTwo extends Fragment {
	Button btn1;
	Button btn2;
	Button btn3;
    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }
 
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                    Bundle savedInstanceState)
    {
            View view = inflater.inflate(R.layout.two, container, false);
            btn1 = (Button)view.findViewById(R.id.gbtn1);
            btn1.setOnClickListener(new OnClickListener() {
    			public void onClick(View v) {
    				Intent intent = new Intent(getActivity(), GrowSub1Activity.class);
    				startActivity(intent);
    				
    			}
    		});
            btn2 = (Button)view.findViewById(R.id.gbtn2);
            btn2.setOnClickListener(new OnClickListener() {
     			public void onClick(View v) {
     				Intent intent = new Intent(getActivity(), GrowSub2Activity.class);
     				startActivity(intent);
     				
     			}
     		});
            btn3 = (Button)view.findViewById(R.id.gbtn3);
            btn3.setOnClickListener(new OnClickListener() {
     			public void onClick(View v) {
     				Intent intent = new Intent(getActivity(), GrowSub3Activity.class);
     				startActivity(intent);
     				
     			}
     		});
            return view;
    }

}
